//
//  URLMacros.h
//  FinanceBBS
//
//  Created by mibo02 on 2017/12/15.
//  Copyright © 2017年 mibo02. All rights reserved.
//

#ifndef URLMacros_h
#define URLMacros_h

//接口版本号
#define KVersionCode 1.0

#define DevelopSever   0
#define TestSever      0
#define ProductSever   1
#if DevelopSever
/**开发服务器*/
#define URL_main @"http://bees.b.com"
#define URL_ImageData @"http://data.b.com"
#define URL_ImageUpload @"http://data.b.com?type=image"
#define URL_qrcodeDown @"http://dev1.b.com/api/qrcode/"
#define URL_App_Down @"http://dev2.b.com/downsure"
#define URL_Get @"http://dev2.b.com/"

///EOS mainURL
#define URL_EOS_Main IsNilOrNull(VALUEFORKEY(kMainEOSnode))?URL_EOS_Main_Node:VALUEFORKEY(kMainEOSnode)
#define URL_EOS_Main_Node @"http://api-mainnet.starteos.io/v1"
#define URL_EOSPark_Mian @"https://api.eospark.com/api"


#elif TestSever
/**测试服务器*/
#define URL_main @"https://apitest.Xiaohan.org"
#define URL_ImageData @"https://datatest.Xiaohan.org"
#define URL_ImageUpload @"https://datatest.Xiaohan.org?type=image"
#define URL_App_Down @"https://htmtest.Xiaohan.org/downsure"
#elif ProductSever
/**生产服务器*/
#define URL_main @"https://api.beesgame.io"
#define URL_ImageData @"https://data.beesgame.io"
#define URL_ImageUpload @"https://data.beesgame.io?type=image"
#define URL_App_Down @"https://www.beesgame.io/downsure"
#define URL_Get @"http://dev2.b.com/"
#define URL_EOS_Main IsNilOrNull(VALUEFORKEY(kMainEOSnode))?URL_EOS_Main_Node:VALUEFORKEY(kMainEOSnode)
#define URL_EOS_Main_Node @"http://api-mainnet.starteos.io/v1"
#define URL_EOSPark_Mian @"https://api.eospark.com/api"

#endif

/************************    BEES    ********************************/
#pragma mark - USER
//POST 注册
#define URL_user NSStringFormat(@"%@%@",URL_main,@"/api/v1/user")
///登录
#define URL_user_login NSStringFormat(@"%@%@",URL_main,@"/api/v1/user/login")
///找回账号
#define URL_user_get_account NSStringFormat(@"%@%@",URL_main,@"/api/v1/user/get_account")
///s重设密码
#define URL_user_forget_password NSStringFormat(@"%@%@",URL_main,@"/api/v1/user/forget_password")
///修改用户信息
#define URL_user_save_usermsg NSStringFormat(@"%@%@",URL_main,@"/api/v1/user/save_user")
///修改密码
#define URL_user_change_password NSStringFormat(@"%@%@",URL_main,@"/api/v1/user/change_password")



/********     EOS          *********/
#define URL_is_valid_account NSStringFormat(@"%@%@",URL_main,@"/api/v1/eos/is_valid_account")
///获取邀请码
#define URL_EOS_account_Pay NSStringFormat(@"%@%@",URL_main,@"/api/v1/pay")
///创建c账号
#define URL_EOS_creat_account NSStringFormat(@"%@%@",URL_main,@"/api/v1/eos")

#define URL_eos_get_key_accounts NSStringFormat(@"%@%@",URL_EOS_Main,@"/history/get_key_accounts")
///获取用户信息
#define URL_Eos_get_account_info NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_account")
///获取账号余额
#define URL_Eos_get_currency_balance NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_currency_balance")
///获取账号code
#define URL_Eos_get_code NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_code")
/// 将交易信息由JSON格式序列化为BIN格式字符串
#define URL_Eos_abi_json_to_bin NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/abi_json_to_bin")
///获取当前最新的区块编号
#define URL_Eos_get_info NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_info")
///根据区块编号获取区块详情
#define URL_Eos_get_block NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_block")
///转账交易
#define URL_Eos_push_transaction NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/push_transaction")
///获取智能合约代码
#define URL_Eos_get_code NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_code")
///
#define URL_Eos_getTableRows NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/get_table_rows")
///将二进制十六进制序列化为json
#define URL_Eos_abi_bin_to_json NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/abi_bin_to_json")

#define URL_Eospark_push_transaction NSStringFormat(@"%@%@",URL_EOS_Main,@"/chain/abi_bin_to_json")

/********    发现页         *********/
///发现页
#define URL_bees_get_discover NSStringFormat(@"%@%@",URL_main,@"/api/v1/discover")
///分类更多
#define URL_discover_more NSStringFormat(@"%@%@",URL_main,@"/api/v1/more")
///游戏中心
#define URL_game_center NSStringFormat(@"%@%@",URL_main,@"/api/v1/game_center")
///资讯列表
#define URL_game_information NSStringFormat(@"%@%@",URL_main,@"/api/v1/information")
///评测列表
#define URL_game_evaluation NSStringFormat(@"%@%@",URL_main,@"/api/v1/evaluation")
///通告
#define URL_game_notice NSStringFormat(@"%@%@",URL_main,@"/api/v1/notice")

/********   我的        *********/
///意见反馈
#define URL_mine_feedback NSStringFormat(@"%@%@",URL_main,@"/api/v1/feedback")
///关于我们
#define URL_mine_about_us NSStringFormat(@"%@%@",URL_main,@"/api/v1/about_us")
///收藏列表
#define URL_mine_dapp_collect NSStringFormat(@"%@%@",URL_main,@"/api/v1/dapp_collect")
///节点列表
#define URL_mine_eos_node NSStringFormat(@"%@%@",URL_main,@"/api/v1/eos_node")
///dapp搜索
#define URL_dapp_search NSStringFormat(@"%@%@",URL_main,@"/api/v1/search")
///热门搜索列表  POST增加热门指数id
#define URL_dapp_hot_search NSStringFormat(@"%@%@",URL_main,@"/api/v1/hot_search")
///资产列表
#define URL_token_valuation NSStringFormat(@"%@%@",URL_main,@"/api/v1/token/valuation")
///更新
#define URL_upgrade NSStringFormat(@"%@%@",URL_main,@"/api/v1/upgrade")

/******    社群   **********/
///全部群聊
#define URL_chat_room NSStringFormat(@"%@%@",URL_main,@"/api/v1/chat_room")
//我的群聊
#define URL_chat_room_my NSStringFormat(@"%@%@",URL_main,@"/api/v1/chat_room/my")
///搜索群聊
#define URL_chat_room_search NSStringFormat(@"%@%@",URL_main,@"/api/v1/chat_room/search")

/******    token   **********/
#define URL_token NSStringFormat(@"%@%@",URL_main,@"/api/v1/token")
///全部资产
#define URL_token_all_valuation NSStringFormat(@"%@%@",URL_main,@"/api/v1/token/all_valuation")
///租赁dapp
#define URL_lease_dapps NSStringFormat(@"%@%@",URL_main,@"/api/v1/lease_dapps")
///交易查询dapp
#define URL_transaction_dapps NSStringFormat(@"%@%@",URL_main,@"/api/v1/transaction_dapps")


#endif /* URLMacros_h */

















